package liangtWorkSpace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Hello world!
 *
 */
@SpringBootApplication
public class App 
{
    public static void main( String[] args )
    {

        Integer a = 123;
        Integer c = 456;
        Integer b = 456;
        System.out.println(b.compareTo(c));
        Object o = "000000245";
        Object sa = "245";
        System.out.println(string(sa));
//        System.out.println( Integer.valueOf(sta) +":" +Integer.valueOf(sa) );
//        SpringApplication.run(App.class,args);
    }

    public static String string (Object string){
        String str = String.valueOf(string);
        if (str.length() < 8){
            StringBuffer stringBuffer = new StringBuffer();
            for (int i = 0;i < 8-str.length();i++){
                stringBuffer.append("0");
            }
            str = stringBuffer.append(string).toString();
        }
        return str;
    }

}
